<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 迷失在太空</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background-color: #000;
            color: #fff;
            font-family: 'Arial', sans-serif;
            overflow: hidden;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        .astronaut {
            width: 150px;
            height: 150px;
            margin-bottom: 30px;
            animation: float 6s ease-in-out infinite;
        }
        h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            color: #4fc3f7;
        }
        p {
            font-size: 1.2rem;
            max-width: 600px;
            margin-bottom: 30px;
        }
        .btn {
            display: inline-block;
            padding: 12px 24px;
            background: #4fc3f7;
            color: #000;
            text-decoration: none;
            border-radius: 30px;
            font-weight: bold;
            transition: all 0.3s;
        }
        .btn:hover {
            background: #fff;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(79, 195, 247, 0.3);
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
    </style>
</head>
<body>
    <div class="stars"></div>
    <img src="https://cdn-icons-png.flaticon.com/512/3242/3242257.png" alt="Astronaut" class="astronaut">
    <h1>404 - 迷失在太空</h1>
    <p>看起来你的飞船偏离了航线！这个页面不存在，但别担心，你可以返回地球（主页）继续你的旅程。</p>
    <a href="/" class="btn">返回地球</a>

    <script>
        // 创建星空背景
        const stars = document.querySelector('.stars');
        for (let i = 0; i < 200; i++) {
            const star = document.createElement('div');
            star.style.position = 'absolute';
            star.style.width = `${Math.random() * 3}px`;
            star.style.height = star.style.width;
            star.style.backgroundColor = 'white';
            star.style.borderRadius = '50%';
            star.style.top = `${Math.random() * 100}%`;
            star.style.left = `${Math.random() * 100}%`;
            star.style.opacity = Math.random();
            star.style.animation = `twinkle ${Math.random() * 5 + 3}s infinite alternate`;
            stars.appendChild(star);
        }
    </script>
</body>
</html>